package cn.qzuie.smart.module.dorm.controller.admin.billpay.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.qzuie.smart.framework.excel.core.annotations.DictFormat;
import cn.qzuie.smart.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 账单支付 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BillPayRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "16871")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "账单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24210")
    @ExcelProperty("账单编号")
    private Long billId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5215")
    @ExcelProperty("用户编号")
    private Long userId;

    @Schema(description = "已付金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已付金额")
    private BigDecimal paidAmount;

    @Schema(description = "支付方式（'alipay','wechat','bank','cash'）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "支付方式（'alipay','wechat','bank','cash'）", converter = DictConvert.class)
    @DictFormat("dorm_pay_method") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String paymentMethod;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}